package com.zhongmeng.newsdemo.base;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.zhongmeng.newsdemo.R;

import butterknife.ButterKnife;

public abstract class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        ButterKnife.bind(this);
        initView();
        addListener();
    }

    public abstract int getLayoutId();
    public abstract void initView();
    public abstract void addListener();
}
